/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javafx179labs.sheypak.lab3;

/**
 *
 * @author SSheypak
 */
public class Person implements Movable{
    private String lastName;
    private String firstName;
    private Integer age;

    public Person(){

    }

    public Person(String lastN, String firstName, Integer age){
        lastName = lastN;
        this.firstName = firstName;
        this.age = age;
    }

    public Integer getAge() {
        return age;
    }

    public Integer getAge(Integer m) {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setAge(String age) {
        this.age = Integer.valueOf(age);
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName.toUpperCase();
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public void moveSomething(Furniture furniture){
        furniture.setX( Double.valueOf(Math.random()*100).intValue() );
        furniture.setY( Double.valueOf(Math.random()*100).intValue() );
    }

   @Override
    public void iAmMoving() {
        System.out.println("I am going from A to B!");
    }
}
